//package com.xdk.templatescala.config;
//
//import org.springframework.beans.factory.annotation.Qualifier;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.jdbc.datasource.DataSourceTransactionManager;
//import org.springframework.transaction.PlatformTransactionManager;
//
//import javax.annotation.Resource;
//import javax.sql.DataSource;
//
//@Configuration
//public class BpmnDataSourceConfiguration {
//
//    @Resource(name = "camundaBpmDataSource")
//    private DataSource dataSource;
//
//    @Bean(name="camundaBpmTransactionManager")
//    public PlatformTransactionManager secondTransactionManager(@Qualifier("camundaBpmDataSource") DataSource dataSource) {
//        return new DataSourceTransactionManager(dataSource);
//    }
//}
